import axios from 'axios'
export default {
  get<T = any>(url: string, params: any) {
    return new Promise<T>((resolve) => {
      const res = axios.get(url, params)
      resolve(res)
    })
  },
  post<T = any>(url: string, params: any) {
    return new Promise<T>((resolve) => {
      const res = axios.post(url, params)
      resolve(res)
    })
  }
}
